package net.tp.struct.tree;

public class BinNode<E> extends AbstractBinNode<BinNode<E>> {

    /**
     * Element of the node. This element can be modified in the delete operation of binary tree.
     */
    public E element;

    public BinNode(E element) {
        if (element == null) throw new NullPointerException();
        this.element = element;
    }

    public E getElement() {
        return element;
    }

    @Override
    public String toString() {
        return element.toString();
    }
}
